<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //报错
        import {'f'+'oo'}from 'my_module';

        //报错
        let module='my_module';
        import {foo} from module;

       //报错
       if(x===1){
          import {foo}from 'module1';
       }else{
          import {foo}from 'module2';
       }
    </script>
</body>
</html>